//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tools\fn_createGroup.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_found_empty","_grp","_i","_side","_side_str","_this","_tmp_grp","_tmp_grp_a","_tmp_time","_x"];
DEFAULT_PARAM(_side,0,east);

if (typeName _side == typename "") then {
	_side = switch (_side) do {
		case "EAST": {east};
		case "WEST": {west};
		case "GUER": {resistance};
		case "CIV": {civilian};
		default {GVAR(enemy_side)};
	};
};
_grp = createGroup _side;
_grp setVariable [QGVAR(CREATED), time + 120];
_grp setVariable [QGVAR(SMOKEUNITS), []];
	
TRACE_1("End",_grp);
TMFPROFILERSTOP;
_grp
